<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CAlsaIO Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CAlsaIO Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CAlsaIO" --><!-- doxytag: inherits="ISampleIO" -->
<p><code>#include &lt;<a class="el" href="alsa__io_8h_source.html">alsa_io.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CAlsaIO:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCAlsaIO.png" usemap="#CAlsaIO_map" alt=""/>
  <map id="CAlsaIO_map" name="CAlsaIO_map">
<area href="classISampleIO.html" alt="ISampleIO" shape="rect" coords="0,0,69,24"/>
</map>
 </div></div>

<p><a href="classCAlsaIO-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#ad0c5787350736de90c5860e6c13bdc40">CAlsaIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, unsigned int pChannels)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#acf2c2eed216bde6d9d95372fb6f084d5">CAlsaIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, unsigned int pChannels, <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> pStreamInfo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a84c71af9809cb7c1f3d22b67e5ef8233">CAlsaIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a90523775a705f0cbf0d33cc22a9fee08">~CAlsaIO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a38e4b858c7ca52ed729cac95f7591643">init</a> (<a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *pConfig)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a75136c89effa2d17df301c34b558b6b3">destroy</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a2bb1348b29dafd091c2b454d21ccb3a0">read</a> (void **pData, <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pTimeout=1000)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a4add4f97167c28853c96280a91f47bdf">write</a> (void *pData, const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#ae2cd7fa1bdeaf8dc4e026fdeda3b62b4">getStreamInfo</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19">EInitError</a> { <a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19a39200ffb564c53d358399b0e0bdb2261">INIT_NO_ERROR</a> =  0, 
<a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19aa5f99b155a680b2cca0d64d49d450f5c">INIT_FAILURE</a> =  1, 
<a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19a06154a4f365e2935cb5ef006f3a0f3e4">INIT_CAPTURE_ERROR</a> =  2, 
<a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19a89b4aa18a4dfb55a90c73e9ea6334147">INIT_PLAYBACK_ERROR</a> =  3
 }</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a219af49ca7e89c72e2753821eeee4038">CAlsaIO</a> (const <a class="el" href="classCAlsaIO.html">CAlsaIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCAlsaIO.html">CAlsaIO</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a1e07d80eac5a4344193c9d9d8136e898">operator=</a> (const <a class="el" href="classCAlsaIO.html">CAlsaIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#afccf825bb8ec3b411090960e9904a28a">initPlayback</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a1fd661a3f7931688fc414b943f73c646">initCapture</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a6458693adf42e1d18886490f07b00971">getBytePerSample</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">snd_pcm_format_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a1465ebb956bc278eb8f94713c077fc3b">getAlsaSndPcmFormat</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19">EInitError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#ac0bec0456ebe156dd7f91ce78f180cb1">mError</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a9534bcc011f1329f48bfd85f05dfa27a">mAction</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a2b4f99e9e294a08333760c34a0b3f84e">mPlaybackPrepareForFirstTime</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a37c151e25b6049d7b8200c07a1119644">mPlaybackChannels</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">snd_pcm_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a3af9bf0b6f2e4060516b8c93b3b58faf">mPlaybackHandle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a9a638038a1cee4c8e4b9bf18ee1dc739">mCapturePrepareForFirstTime</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#aa6c23d2d8e78a26d31a20569bc708c00">mCaptureChannels</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">snd_pcm_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a6c3ab64007888a9ae062f4b7a92d8f5a">mCaptureHandle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a83ad50108db82d97d312fe853d6418e2">mCaptureBuffer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#a57d951532a8acae23e8cd194cf5dc980">mStreamInfo</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCAlsaIO.html#aa8c8c3677bd118325188b00f9e4784c2">mBytePerSample</a></td></tr>
</table>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="af025779080a15ea1a8d13009cf774a19"></a><!-- doxytag: member="CAlsaIO::EInitError" ref="af025779080a15ea1a8d13009cf774a19" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19">CAlsaIO::EInitError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af025779080a15ea1a8d13009cf774a19a39200ffb564c53d358399b0e0bdb2261"></a><!-- doxytag: member="INIT_NO_ERROR" ref="af025779080a15ea1a8d13009cf774a19a39200ffb564c53d358399b0e0bdb2261" args="" -->INIT_NO_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af025779080a15ea1a8d13009cf774a19aa5f99b155a680b2cca0d64d49d450f5c"></a><!-- doxytag: member="INIT_FAILURE" ref="af025779080a15ea1a8d13009cf774a19aa5f99b155a680b2cca0d64d49d450f5c" args="" -->INIT_FAILURE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af025779080a15ea1a8d13009cf774a19a06154a4f365e2935cb5ef006f3a0f3e4"></a><!-- doxytag: member="INIT_CAPTURE_ERROR" ref="af025779080a15ea1a8d13009cf774a19a06154a4f365e2935cb5ef006f3a0f3e4" args="" -->INIT_CAPTURE_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af025779080a15ea1a8d13009cf774a19a89b4aa18a4dfb55a90c73e9ea6334147"></a><!-- doxytag: member="INIT_PLAYBACK_ERROR" ref="af025779080a15ea1a8d13009cf774a19a89b4aa18a4dfb55a90c73e9ea6334147" args="" -->INIT_PLAYBACK_ERROR</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad0c5787350736de90c5860e6c13bdc40"></a><!-- doxytag: member="CAlsaIO::CAlsaIO" ref="ad0c5787350736de90c5860e6c13bdc40" args="(EAction pAction, unsigned int pChannels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAlsaIO::CAlsaIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pChannels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acf2c2eed216bde6d9d95372fb6f084d5"></a><!-- doxytag: member="CAlsaIO::CAlsaIO" ref="acf2c2eed216bde6d9d95372fb6f084d5" args="(EAction pAction, unsigned int pChannels, NAudioFormats::SStreamInfo pStreamInfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAlsaIO::CAlsaIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pChannels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td>
          <td class="paramname"><em>pStreamInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a84c71af9809cb7c1f3d22b67e5ef8233"></a><!-- doxytag: member="CAlsaIO::CAlsaIO" ref="a84c71af9809cb7c1f3d22b67e5ef8233" args="(EAction pAction)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAlsaIO::CAlsaIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a90523775a705f0cbf0d33cc22a9fee08"></a><!-- doxytag: member="CAlsaIO::~CAlsaIO" ref="a90523775a705f0cbf0d33cc22a9fee08" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAlsaIO::~CAlsaIO </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a219af49ca7e89c72e2753821eeee4038"></a><!-- doxytag: member="CAlsaIO::CAlsaIO" ref="a219af49ca7e89c72e2753821eeee4038" args="(const CAlsaIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAlsaIO::CAlsaIO </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCAlsaIO.html">CAlsaIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a75136c89effa2d17df301c34b558b6b3"></a><!-- doxytag: member="CAlsaIO::destroy" ref="a75136c89effa2d17df301c34b558b6b3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CAlsaIO::destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a4a3ef7be5c5abba7f9993913380cb14f">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a1465ebb956bc278eb8f94713c077fc3b"></a><!-- doxytag: member="CAlsaIO::getAlsaSndPcmFormat" ref="a1465ebb956bc278eb8f94713c077fc3b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">snd_pcm_format_t CAlsaIO::getAlsaSndPcmFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6458693adf42e1d18886490f07b00971"></a><!-- doxytag: member="CAlsaIO::getBytePerSample" ref="a6458693adf42e1d18886490f07b00971" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CAlsaIO::getBytePerSample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae2cd7fa1bdeaf8dc4e026fdeda3b62b4"></a><!-- doxytag: member="CAlsaIO::getStreamInfo" ref="ae2cd7fa1bdeaf8dc4e026fdeda3b62b4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> CAlsaIO::getStreamInfo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a9e43c9190bd486f654f930aa49af48d1">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a38e4b858c7ca52ed729cac95f7591643"></a><!-- doxytag: member="CAlsaIO::init" ref="a38e4b858c7ca52ed729cac95f7591643" args="(CPropertiesReader *pConfig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CAlsaIO::init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *&#160;</td>
          <td class="paramname"><em>pConfig</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="note"><dt><b>Note:</b></dt><dd>The instance of the properties reader will be freed (delete) by the main programm and is not allowed by the deconstructor of an inherit IO class.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pConfig</td><td>pointer to the properties reader </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success, -1 otherwise </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#ab8ef7dd9048d0944d3c5f50329e0874d">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a1fd661a3f7931688fc414b943f73c646"></a><!-- doxytag: member="CAlsaIO::initCapture" ref="a1fd661a3f7931688fc414b943f73c646" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CAlsaIO::initCapture </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afccf825bb8ec3b411090960e9904a28a"></a><!-- doxytag: member="CAlsaIO::initPlayback" ref="afccf825bb8ec3b411090960e9904a28a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CAlsaIO::initPlayback </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1e07d80eac5a4344193c9d9d8136e898"></a><!-- doxytag: member="CAlsaIO::operator=" ref="a1e07d80eac5a4344193c9d9d8136e898" args="(const CAlsaIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCAlsaIO.html">CAlsaIO</a>&amp; CAlsaIO::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCAlsaIO.html">CAlsaIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2bb1348b29dafd091c2b454d21ccb3a0"></a><!-- doxytag: member="CAlsaIO::read" ref="a2bb1348b29dafd091c2b454d21ccb3a0" args="(void **pData, EAction &amp;pAction, int pTimeout=1000)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int CAlsaIO::read </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pTimeout</em> = <code>1000</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4add4f97167c28853c96280a91f47bdf"></a><!-- doxytag: member="CAlsaIO::write" ref="a4add4f97167c28853c96280a91f47bdf" args="(void *pData, const EAction &amp;pAction, int pLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int CAlsaIO::write </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a9534bcc011f1329f48bfd85f05dfa27a"></a><!-- doxytag: member="CAlsaIO::mAction" ref="a9534bcc011f1329f48bfd85f05dfa27a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> <a class="el" href="classCAlsaIO.html#a9534bcc011f1329f48bfd85f05dfa27a">CAlsaIO::mAction</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa8c8c3677bd118325188b00f9e4784c2"></a><!-- doxytag: member="CAlsaIO::mBytePerSample" ref="aa8c8c3677bd118325188b00f9e4784c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCAlsaIO.html#aa8c8c3677bd118325188b00f9e4784c2">CAlsaIO::mBytePerSample</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a83ad50108db82d97d312fe853d6418e2"></a><!-- doxytag: member="CAlsaIO::mCaptureBuffer" ref="a83ad50108db82d97d312fe853d6418e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="classCAlsaIO.html#a83ad50108db82d97d312fe853d6418e2">CAlsaIO::mCaptureBuffer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa6c23d2d8e78a26d31a20569bc708c00"></a><!-- doxytag: member="CAlsaIO::mCaptureChannels" ref="aa6c23d2d8e78a26d31a20569bc708c00" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCAlsaIO.html#aa6c23d2d8e78a26d31a20569bc708c00">CAlsaIO::mCaptureChannels</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6c3ab64007888a9ae062f4b7a92d8f5a"></a><!-- doxytag: member="CAlsaIO::mCaptureHandle" ref="a6c3ab64007888a9ae062f4b7a92d8f5a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">snd_pcm_t* <a class="el" href="classCAlsaIO.html#a6c3ab64007888a9ae062f4b7a92d8f5a">CAlsaIO::mCaptureHandle</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9a638038a1cee4c8e4b9bf18ee1dc739"></a><!-- doxytag: member="CAlsaIO::mCapturePrepareForFirstTime" ref="a9a638038a1cee4c8e4b9bf18ee1dc739" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCAlsaIO.html#a9a638038a1cee4c8e4b9bf18ee1dc739">CAlsaIO::mCapturePrepareForFirstTime</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac0bec0456ebe156dd7f91ce78f180cb1"></a><!-- doxytag: member="CAlsaIO::mError" ref="ac0bec0456ebe156dd7f91ce78f180cb1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCAlsaIO.html#af025779080a15ea1a8d13009cf774a19">EInitError</a> <a class="el" href="classCAlsaIO.html#ac0bec0456ebe156dd7f91ce78f180cb1">CAlsaIO::mError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a37c151e25b6049d7b8200c07a1119644"></a><!-- doxytag: member="CAlsaIO::mPlaybackChannels" ref="a37c151e25b6049d7b8200c07a1119644" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCAlsaIO.html#a37c151e25b6049d7b8200c07a1119644">CAlsaIO::mPlaybackChannels</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3af9bf0b6f2e4060516b8c93b3b58faf"></a><!-- doxytag: member="CAlsaIO::mPlaybackHandle" ref="a3af9bf0b6f2e4060516b8c93b3b58faf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">snd_pcm_t* <a class="el" href="classCAlsaIO.html#a3af9bf0b6f2e4060516b8c93b3b58faf">CAlsaIO::mPlaybackHandle</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2b4f99e9e294a08333760c34a0b3f84e"></a><!-- doxytag: member="CAlsaIO::mPlaybackPrepareForFirstTime" ref="a2b4f99e9e294a08333760c34a0b3f84e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCAlsaIO.html#a2b4f99e9e294a08333760c34a0b3f84e">CAlsaIO::mPlaybackPrepareForFirstTime</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a57d951532a8acae23e8cd194cf5dc980"></a><!-- doxytag: member="CAlsaIO::mStreamInfo" ref="a57d951532a8acae23e8cd194cf5dc980" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="el" href="classCAlsaIO.html#a57d951532a8acae23e8cd194cf5dc980">CAlsaIO::mStreamInfo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="alsa__io_8h_source.html">alsa_io.h</a></li>
<li><a class="el" href="alsa__io_8cxx.html">alsa_io.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:40 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
